package cn.xinfei.xdecision.engine.runner.model;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

@Data
public class NodeResponse {
    private Long nodeId;
    private String nodeName;
    private String nodeCode;
    private Map<String,Object> result=new HashMap<>();

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        NodeResponse that = (NodeResponse) o;
        return  nodeCode.equals(that.nodeCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash( nodeCode);
    }
}
